<?php
declare (strict_types = 1);

namespace app\admin\controller;

use think\facade\Db;
use think\facade\View;

class Index
{
    public function index()
    {
        //{include file=''} 模板引入 以view文件夹为根向下引入 可同时引入多个(以逗号隔开) 注：不能互相引入

        return view();
    }
    public function info(){
        return view();
    }
    public function advEdit(){
        $id=input('get.id');
        $banner=Db::table('ecm_banner')->where('id','=',$id)->find();
        View::assign('banner',$banner);
        return view();
    }
    public function adv(){
        $banners=Db::table('ecm_banner')->select();
        View::assign('banner',$banners);
        return view();
    }
    public function login(){
        return view();
    }
    public function pass(){
        return view();
    }
}
